import {Message} from "iview";

let imessage =  function (options){
    Message.destroy()
    return Message.message(options)
}

let imessage_error =  function (options){
    Message.destroy()
    return Message.message('error',options)
}

let imessage_info =  function (options){
    Message.destroy()
    return Message.message('info',options)
}

let imessage_loading =  function (options){
    Message.destroy()
    return Message.message('loading',options)
}

let imessage_success =  function (options){
    Message.destroy()
    return Message.message('success',options)
}

let imessage_warning =  function (options){
    Message.destroy()
    return Message.message('warning',options)
}
export {imessage,imessage_error,imessage_info,imessage_loading,imessage_success,imessage_warning}